import { ProductTypeSimple } from '@/model/product.model'

const signalSource = [
  {
    key: 'vehicleSignal',
    name: '车端信号',
    scope: [ProductTypeSimple.vehicle]
  },
  {
    key: 'ecoSignal',
    name: '生态信号',
    scope: [ProductTypeSimple.vehicle, ProductTypeSimple.cloud]
  },
  {
    key: 'tspSignal',
    name: 'TSP信号',
    scope: [ProductTypeSimple.cloud]
  }
]

// 单信号的前端模型
const SignalItemModel = {
  // 操作符
  symbols: [],
  // 数据类型
  dataType: '',
  // 可选值，当数据类型为泛枚举时，需要解析values
  values: [],
  // 校验规则
  spec: null
}

export {
  signalSource,
  SignalItemModel
}
